/**
 * LocationItem
 */

 import consts from "../../../../../consts/consts";
 import React,{Component}from "react";

 class LocationItem extends Component{
    handleOnOpenDialog(){
//        var root = this.props.root;
//        var data = this.props.data;
//        root.openDialog(consts.DIALOG_TYPE.ADDRESS, false, data);
        console.log("open dialog");
    }
    render(){
        const {data} = this.props;
        return (
            <input name="location" type="text" readOnly onFocus={() => this.handleOnOpenDialog()} value={ data.action.target } />
        )
    }
 }

 module.exports = LocationItem;
